package com.example.minisqlite;

import java.sql.SQLException;
import java.util.List;

public class InsertStatement implements Statement {

    private final String tableName;
    private final List<String> columns;
    private final List<Object> values;

    public InsertStatement(String tableName, List<String> columns, List<Object> values) {
        this.tableName = tableName;
        this.columns = columns;
        this.values = values;
    }

    @Override
    public ResultSet execute(Engine engine) throws SQLException {
        return engine.insert(tableName, columns, values);
    }
}
